﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs" Inherits="DuJianliang.ApplicationPlatform.UserPermission.UserEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        #editTable
        {
            background-color: #000000;            
        }
        #editTable td
        {
            background-color: #ffffff;
            padding: 10px 10px 10px 10px;
        }
    </style>
    <script type="text/javascript">
        function showPage() {
            var retValue = window.showModalDialog(encodeURI("SelectDept.aspx"), "", "dialogWidth=800px;dialogHeight=600px");            
            if (retValue != "" && typeof (retValue) != "undefined") {
                var retValues = retValue.split('|');
                document.getElementById('<%=hidDeptID.ClientID%>').value = retValues[0];
                document.getElementById('<%=txt5.ClientID%>').value = retValues[1];
            }
            return false;
        }
    </script>  
</head>
<body style="font-size:12px">
    <form id="form1" runat="server">
    <div>
    <table id="editTable" width="600px" border="0" cellpadding="0" cellspacing="1" align="center">
      <tr>
        <td colspan="2" align="center">导弹入厂信息维护</td>        
      </tr>
      <tr>
        <td width="150px">用户名</td>
        <td>
            <asp:TextBox ID="txt1" runat="server" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="requiredFieldValidator1" runat="server" 
                    ControlToValidate="txt1" Font-Names="Verdana" ForeColor="Red" 
                    Display="Dynamic">必须填写</asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr>
        <td>密码</td>
        <td>
            <asp:TextBox ID="txt2" runat="server" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="requiredFieldValidator2" runat="server" 
                    ControlToValidate="txt2" Font-Names="Verdana" ForeColor="Red" 
                    Display="Dynamic">必须填写</asp:RequiredFieldValidator>
          </td>
      </tr>
      <tr>
        <td>真实姓名</td>
        <td>
            <asp:TextBox ID="txt3" runat="server" Width="200px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="requiredFieldValidator3" runat="server" 
                    ControlToValidate="txt3" Font-Names="Verdana" ForeColor="Red" 
                    Display="Dynamic">必须填写</asp:RequiredFieldValidator>
          </td>
      </tr>
      <tr>
        <td>Email</td>
        <td>
            <asp:TextBox ID="txt4" runat="server" Width="200px"></asp:TextBox>            
        </td>
      </tr>
      <tr>
        <td>所属部门</td>
        <td>
            <asp:TextBox ID="txt5" runat="server" Width="200px" ReadOnly="True"></asp:TextBox>
            <input id="Button1" type="button" value="选择" onclick="showPage()" />
            <asp:RequiredFieldValidator ID="requiredFieldValidator5" runat="server" 
                    ControlToValidate="txt5" Font-Names="Verdana" ForeColor="Red" 
                    Display="Dynamic">必须填写</asp:RequiredFieldValidator>
            <asp:HiddenField ID="hidDeptID" runat="server" />
          </td>
      </tr>
      <tr>
        <td>是否为管理员</td>
        <td>
            <asp:RadioButton ID="rbtnIsAdminNo" runat="server" GroupName="IsAdmin" 
                Text="否" Checked="True" />&nbsp;&nbsp;
            <asp:RadioButton ID="rbtnIsAdminYes" runat="server" GroupName="IsAdmin" 
                Text="是" />
          </td>
      </tr>
      <tr>
        <td colspan="2" align="center">
            <asp:Button ID="btnOK" runat="server" Text="确定" Width="60px" 
                onclick="btnOK_Click" />
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnCancel" runat="server" Text="取消" Width="60px" 
                onclick="btnCancel_Click" CausesValidation="False" />
          </td>        
      </tr>
    </table>
    </div>
    </form>
</body>
</html>
